package com.gxa.jjty.cjr.service;

import com.gxa.jjty.core.exception.BusinessException;
import com.gxa.jjty.core.pojo.Healthy;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @author : 宸濯
 * Date: 2021/12/06 14:43
 * Description:
 * Version: V1.0
 */
public interface HealthyService {

    /**
     * 添加/修改个人健康数据
     * @param healthy 目标健康数据
     * @return 添加/修改结果
     * @throws BusinessException 添加/修改异常
     */
    Map<String,Object> upsert(Healthy healthy) throws BusinessException;

    /**
     * 查询个人健康数据
     * @param id 目标用户id
     * @return 目标用户健康信息
     * @throws BusinessException 查询异常
     */
    Map<String,Object> findById(Long id) throws BusinessException;
}
